<?php


// x
// y
// tmpVar

session_start();

// Build an array with pixel informations
$nbr = $_REQUEST["height"];
$pixels = array();
for($i=0;$i<$nbr;$i++) {
    $pixels[$i] = $_REQUEST["px".$i];
}

$_SESSION["drawer_pixels"] = $pixels;
$_SESSION["drawer_height"] = $_REQUEST["height"];
$_SESSION["drawer_width"] = $_REQUEST["width"];

$url = $_SESSION["drawer_url"] . "&do=save";
header('Location: '. $url);

?>